package net.kongliu.util.entity;

import java.io.Serializable;

public class ObjectError implements Serializable {
    private final String objectName;
    private final String defaultMessage;

    public ObjectError(String objectName, String defaultMessage) {
        this.objectName = objectName;
        this.defaultMessage = defaultMessage;
    }

    public String getObjectName() {
        return objectName;
    }

    public String getDefaultMessage() {
        return defaultMessage;
    }

    @Override
    public String toString() {
        return "ObjectError{" +
                "objectName='" + objectName + '\'' +
                ", defaultMessage='" + defaultMessage + '\'' +
                '}';
    }
}
